package com.gzy.rpsm.property.service;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.gzy.rpsm.property.pojo.PageResult;
import com.gzy.rpsm.property.pojo.User;
import com.gzy.rpsm.property.pojo.vo.UnpaidOwner;
import org.springframework.dao.DuplicateKeyException;

public interface UserService {
    int insertUser(User user) throws
            DuplicateKeyException,Exception;

    PageResult<User> pageOfOwner(Integer current, Integer size);
    int changeUserStatus(User user);
    User queryById(int id);

    PageResult<UnpaidOwner> pageOfUnpaidOwnerList(Integer current, Integer size, Integer typeId);
}

